package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.OrderDetail;
import com.itheima.reggie.entity.Orders;
import com.itheima.reggie.entity.ShoppingCart;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface OrderService extends IService<Orders> {

    /**
     * 用户下单
     * @param orders
     */
    List<Orders>  submit(Orders orders);

    /**
     * 再来一单功能
     * @param orderDetailList
     * @return
     */

    List<ShoppingCart> againAdd(List<OrderDetail> orderDetailList);


    /**
     * 根据订单号查询订单
     * @param orderNo
     * @return
     */
    public Orders selectByOrderId(String orderNo);

    Map<String, BigDecimal> getMonthlyRevenues();
}
